/*
#####################################################################
####################	   T R I B U I T 		#####################
#####################################################################

Copyright (C) 2010  Christoph Schnack, Berlin (Germany)

This file is part of Tribuit.

    Tribuit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Tribuit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Tribuit.  If not, see <http://www.gnu.org/licenses/>.


########################################################################
*/
package PictureDescription;

import java.util.Vector;

/**
 * Contains a String and a Vector of TagUnits.
 * 
 * @author Christoph Schnack
 * @param	nme Name
 * 			iText infoText;
 * 			units tag units	
 */
public class PictureNameUnit {
	Vector<PictureTagUnit> tags;
	String name,infoText;
	public PictureNameUnit(String nme, String iText, Vector<PictureTagUnit> units){
		name=nme;
		infoText= iText;
		tags=units;
	}
	
	public Vector<PictureTagUnit> getTags(){return tags;}
	public String getName(){ return name;}
	public String getInfoText(){ return infoText;}
	public boolean hasTags(){ return tags.size()>0;}
	public boolean hasInfoText(){ return (infoText!=null && !infoText.equals(""));}
}
